package com.ruoyi.edu.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.edu.mapper.EduPolicyMapper;
import com.ruoyi.edu.domain.EduPolicy;
import com.ruoyi.edu.service.IEduPolicyService;

/**
 * 教育政策Service业务层处理
 * 
 * @author ruoyi
 * @date 2024-06-29
 */
@Service
public class EduPolicyServiceImpl implements IEduPolicyService 
{
    @Autowired
    private EduPolicyMapper eduPolicyMapper;

    /**
     * 查询教育政策
     * 
     * @param id 教育政策主键
     * @return 教育政策
     */
    @Override
    public EduPolicy selectEduPolicyById(Long id)
    {
        return eduPolicyMapper.selectEduPolicyById(id);
    }

    /**
     * 查询教育政策列表
     * 
     * @param eduPolicy 教育政策
     * @return 教育政策
     */
    @Override
    public List<EduPolicy> selectEduPolicyList(EduPolicy eduPolicy)
    {
        return eduPolicyMapper.selectEduPolicyList(eduPolicy);
    }

    /**
     * 新增教育政策
     * 
     * @param eduPolicy 教育政策
     * @return 结果
     */
    @Override
    public int insertEduPolicy(EduPolicy eduPolicy)
    {
        return eduPolicyMapper.insertEduPolicy(eduPolicy);
    }

    /**
     * 修改教育政策
     * 
     * @param eduPolicy 教育政策
     * @return 结果
     */
    @Override
    public int updateEduPolicy(EduPolicy eduPolicy)
    {
        return eduPolicyMapper.updateEduPolicy(eduPolicy);
    }

    /**
     * 批量删除教育政策
     * 
     * @param ids 需要删除的教育政策主键
     * @return 结果
     */
    @Override
    public int deleteEduPolicyByIds(Long[] ids)
    {
        return eduPolicyMapper.deleteEduPolicyByIds(ids);
    }

    /**
     * 删除教育政策信息
     * 
     * @param id 教育政策主键
     * @return 结果
     */
    @Override
    public int deleteEduPolicyById(Long id)
    {
        return eduPolicyMapper.deleteEduPolicyById(id);
    }
}
